package com.pipe.protocol.events.table.reader;

import com.pipe.util.MyBytebufUtil;
import io.netty.buffer.ByteBuf;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Kiven
 */
public class MysqlTypeTinyReader implements ColumnReader<Short>{
    private Logger log = LoggerFactory.getLogger(MysqlTypeTinyReader.class);

    @Override
    public Short read(ByteBuf byteBuf, int readLength) {
        log.debug("parse tinyint!");
        return byteBuf.readUnsignedByte();
    }
}